package com.zhaoyuxi.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "zyx")
public class DirectConsumer {

    @RabbitHandler
    public void message(String message){
        System.out.println("zyx接收信息："+message);
    }
}
